package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.DemoUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 将Mapper接口交给Spring管理
 */
//@Mapper

/**
 * 注意事项：BaseMapper必须添加泛型，泛型为表与之对应的类型
  */
public interface DemoUserMapper extends BaseMapper<DemoUser> {

    List<DemoUser> findAll();

    void insertUser(DemoUser demoUser);

    void updateUser(String oldName, String nowName,String sex);

    DemoUser selectById(int id);
}